package com.antdesignbackend.backend.service.impl;

import com.antdesignbackend.backend.entity.Meter;
import com.antdesignbackend.backend.entity.entityVo.MeterVo;
import com.antdesignbackend.backend.mapper.MeterMapper;
import com.antdesignbackend.backend.service.MeterService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MeterServiceImpl extends ServiceImpl<MeterMapper, Meter> implements MeterService {
    @Autowired
    private MeterMapper meterMapper;
    @Override
    public List<MeterVo> search(QueryWrapper<MeterVo> queryWrapper, Page<MeterVo> page) {
        return meterMapper.search(queryWrapper, page);
    }
    @Override
    public Integer count(QueryWrapper<MeterVo> queryWrapper) {
        return meterMapper.count(queryWrapper);
    }

}
